<?php
class Core_Data_Dataoperations implements Core_Data_Mainable {
	
	/**
	 * database handler
	 * @var object $database
	 */
	public $database;
	
	/**
	 * constructor()
	 */
	public function __construct(){
		$this->database = new Core_Driver_Mysqlimproved;
	}
	
	/**
	 * database data operations
	 * @see Core_Data_Mainable::main()
	 */
	public function main(array $variables = null){
		$this->database->connect();
		$this->database->prepare($variables['query']);
		$this->database->query();
		return $this->database->data_operations();
	}
	
}